<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.*" %>
<html>
<head>
    <title>application内置对象</title>
</head>
<body>
<%
    Enumeration<String> enumeration = application.getAttributeNames(); // 获取全部属性的名称
    while(enumeration.hasMoreElements()) {
        String name = enumeration.nextElement(); // 获取属性名称
%>
        <p><%=name%> = <%=application.getAttribute(name)%></p>
<%
    }
%>
</body>
</html>
